

#include <avr/io.h>
#include <avr/interrupt.h>


void timer_init(void)
{
	TCCR1B = (1<<CS11)|(1<<CS10);
	TIMSK1 = (1<<TOIE1);
}

ISR(TIMER1_OVF_vect)
{
	ADCSRA = (1<<ADEN)|(1<<ADSC)|(1<<ADIE)|(1<<ADPS2)|(1<<ADPS1);
}

